package com.example.project.controller;

import com.example.project.aop.ResponseResult;
import com.example.project.service.EchartsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.Map;

@ResponseResult()
@RequestMapping("/echarts")
public class EchartsController {

    @Resource
    private EchartsService echartsService;

    @GetMapping
    public Map<String,Object> getAllData(){
        return echartsService.getAllData();
    }

}
